package com.lenovo.lcdm.dcm.service;

import com.lenovo.lcdm.dcm.dto.AttachmentDto;
import com.lenovo.lcdm.dcm.entity.DcmAttachmentLink;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author xujing30
* @description 针对表【dcm_attachment_link】的数据库操作Service
* @createDate 2024-01-22 17:24:13
*/
public interface DcmAttachmentLinkService extends IService<DcmAttachmentLink> {

    List<DcmAttachmentLink> getByObjectId(List<Long> ids);

    DcmAttachmentLink getByObjectIdAndName(String objectName, Long id);

    DcmAttachmentLink getByAttachmentIdAndObjectName(Long attachmentId, String objectName);

    String getFileNameByAttachmentId(String attachmentId);

    Map<String, String> getFileNamesByAttachmentId(String[] attachmentId);

    String uploadAttachment(AttachmentDto attachmentDto);

    String downloadAttachment(String attachmentId);

    void saveLink(String attachmentId, String fileName, Long fileSize, String objectName, Long objectId);

    String getUrlByObjectIdAndName(Long id, String objectName);



}
